/**
 * $Id: OrganizationPerspective.java 7 2011-03-09 07:13:54Z r.middel@gmail.com $
 *
 * Copyright (C) 2010 mrBussy.eu
 * 
 * WickedHRM is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * WickedHRM is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package eu.mrbussy.applications.wickedhrm.gui.perspective;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import eu.mrbussy.applications.wickedhrm.gui.view.FunctionalTreeView;
import eu.mrbussy.applications.wickedhrm.gui.view.OrganisationTreeView;
public class OrganizationPerspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		layout.setEditorAreaVisible(true);
		layout.setFixed(false);

		IFolderLayout left = layout.createFolder("eu.mrbussy.applications.wickedhrm.container.navigation",
        		IPageLayout.LEFT,
        		0.50f,
        		IPageLayout.ID_EDITOR_AREA);
		
		left.addView(OrganisationTreeView.ID);
		left.addPlaceholder(FunctionalTreeView.ID);
	}

}
